package org.breathe.dynamic.thread.pool.core.monitor.collector;

import org.breathe.thread.pool.common.entity.ThreadPoolStats;

/**
 * 指标收集
 * @author: breathe
 * @createTime: 2025-04-14
 */
public interface MetricsCollector {
    /**
     * 收集
     */
    void collect(ThreadPoolStats threadPoolStats);

    /**
     * 类型
     */
    String type();

    /**
     * 判断是否能收集
     */
    boolean support(String type);
}
